package com.itheima.aspectj.xml;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.itheima.jdk.UserDao;

public class TestXMLAspectj {
	public static void main(String[] args) {
		String xmlPath="com/itheima/aspectj/xml/applicationContext.xml";
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlPath);
		//1.从Spring容器获取内容
		UserDao userDao = (UserDao)applicationContext.getBean("userDao");
		//2.执行方法
		userDao.addUser();
	}
}
